package com.meter.basic.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.meter.common.annotation.Excel;
import com.meter.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 住房信息
 */
@Data
@Accessors(chain = true)
@TableName("basic_house")
public class BasicHouse extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long houseId;

    private String houseName;

    private String fullName;

    private Long parentId;

    private String ancestors;

    private Integer houseLevel;

    @TableLogic
    private String delFlag;

    private String remark;

    @TableField(exist = false)
    private Integer orderNum;

    @Excel(name = "所属分公司")
    @TableField(exist = false)
    private String name1;

    @Excel(name = "所属小区")
    @TableField(exist = false)
    private String name2;

    @Excel(name = "所属楼宇")
    @TableField(exist = false)
    private String name3;

    @Excel(name = "所属单元")
    @TableField(exist = false)
    private String name4;

    @Excel(name = "所属住房")
    @TableField(exist = false)
    private String name5;

    /**
     * 父级名称
     */
    @TableField(exist = false)
    private String parentName;
}
